package file;

import com.google.common.io.Files;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.MessageDigest;
import java.security.MessageDigestSpi;

public class FileMp3Rename {

    public static void main(String[] args) {
        MessageDigestSpi messageDigestSpi;
        MessageDigest messageDigest;
        File f = new File("/Users/dingjianfeng/Downloads/人类简史（完结）");
        File[] files = f.listFiles();
        for (File ff : files) {
            if (ff.getName().endsWith(".mp3")) {
                String newName = ff.getName().replace("人类简史（上）", "").replace("人类简史（下）", "").trim().replace("（", "").replace("）", "");
            }
        }
    }
}
